<template>
  <!-- 展示用户列表 -->
  <div>
    <div class="table_content" v-if="faceData.length > 0">
      <el-table
        v-loading="loading"
        :data="faceData"
        style="width: 100%"
        :element-loading-text="loadingText"
      >
        <!-- <el-table-column type="selection" width="55"> </el-table-column> -->

        <el-table-column prop="reserved" label="名称"> </el-table-column>

        <el-table-column prop="reserved" label="抓拍照" align="center">
        </el-table-column>

        <el-table-column prop="reserved" label="库底照" align="center">
        </el-table-column>

        <el-table-column prop="reserved" label="场景照片" align="center">
        </el-table-column>

        <el-table-column prop="channelName" label="区域" align="center">
        </el-table-column>

        <!-- <el-table-column prop="faceQuality" label="拍照分数" align="center">
        </el-table-column>

        <el-table-column prop="reserved2" label="员工库" align="center">
        </el-table-column> -->

        <el-table-column
          prop="iso8601timestamp"
          label="抓拍时间"
          align="center"
          :style="{ fontWeight: 'bold' }"
        >
        </el-table-column>

        <el-table-column label="操作" align="center">
          <el-button
            title="查看"
            size="small"
            type="button"
            icon="el-icon-view"
          ></el-button>
        </el-table-column>
      </el-table>
    </div>
    <paginations :total="total"></paginations>
  </div>
</template>

<script>
import Paginations from "@/components/pagnation/Pagnation.vue";

export default {
  name: "OneList",
  components: {
    Paginations,
  },

  mounted() {
    this.$bus.$on("faceList", (faceData) => {
      console.log("我是list我收到了数据", faceData);
      this.faceData = faceData;

      this.total = faceData[0].total;
      console.log("total值====================");
      console.log(this.total);
      this.loading = false;
    });
  },
  data() {
    return {
      loadingText: "数据加载中",
      faceData: [],
      loading: true,
      faceParm: {
        currentPage: 1,
        pageSize: 10,
      },
      total: 0,
    };
  },
  methods: {},
};
</script>

<style lang="css" scoped>

/* 如果样式没有生效使用 /deep/ */
.el-table /deep/ .cell {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
    line-height: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }

/* .card {
  float: left;
  width: 33.333%;
  padding: 0.75rem;
  margin-bottom: 2rem;
  border: 1px solid #efefef;
  text-align: center;
}

.card > img {
  margin-bottom: 0.75rem;
  border-radius: 100px;
}

.card-text {
  font-size: 85%;
} */
</style>